<template>
  <div>
    <el-form ref="form" :model="addUnitData" label-width="80px">
      <el-row>
        <el-col :span="24">
          <el-form-item label="楼栋编号">
            <el-input v-model="addUnitData.floorId" placeholder="楼栋编号" maxlength="18" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="单元名称">
            <el-input v-model="addUnitData.unitName" placeholder="单元名称" maxlength="18"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="总层数">
            <el-input v-model="addUnitData.layerCount" placeholder="总层数" maxlength="18"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="有无电梯">
            <el-select v-model="addUnitData.lift" placeholder="是否有电梯">
              <el-option v-for="item in liftSelect" :label="item.label" :value="item.key" :key="item.key"/>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="建筑面积">
            <el-input-number v-model="addUnitData.unitArea" placeholder="建筑面积" maxlength="18" :precision="2" :step="0.1" :min="0.00"></el-input-number>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="描述">
            <el-input type="textarea" v-model="addUnitData.remark" placeholder="楼栋描述"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "addUnit",
  props:['addUnitData'],
  data(){
    return {
      liftSelect:[
        {'key':'1010','label':'有'},
        {'key':'2020','label':'无'}
      ]
    }
  }
}
</script>

<style scoped>

</style>
